package market

import (
	"context"
	"git.900sui.cn/kc/rpcinterface/client"
	"git.900sui.cn/kc/rpcinterface/interface/elastic/cards"
	"git.900sui.cn/kc/rpcinterface/interface/task/market"
)

type Activity struct {
	client.Baseclient
}

// Init Init
func (a *Activity) Init() *Activity {
	a.ServiceName = "rpc_task"
	a.ServicePath = "Market/Activity"
	return a
}

//将门店活动设置到任务交换机
func (s *Activity) SetActivity( ctx context.Context, args *cards.ArgsSetShopsActivity, reply *bool ) (err error)  {
	return s.Call(ctx, "SetActivity", args, reply)
}

//总店发布拼团 发起延迟队列 团有效期到 status还是待成团状态 就更改为已成团
func (s *Activity) SetGroupBookingStatus ( ctx context.Context, args *market.ArgsSetGroupBookingStatus, reply *bool ) (err error)  {
	return s.Call(ctx, "SetGroupBookingStatus", args, reply)
}